package com.tech.pattern.observer;

public class Test {
	
	@org.junit.Test
	public void testWatchModel(){
		
		WatcherImpl w1 = new WatcherImpl();
		WatcherImpl w2 = new WatcherImpl();
		WatcherImpl w3 = new WatcherImpl();
		WatcherImpl w4 = new WatcherImpl();
		//
		WatchedImpl w = new WatchedImpl();
		w.addWatcher(w1);
		w.addWatcher(w2);
		w.addWatcher(w3);
		w.addWatcher(w4);
		w.notificationWatcher();
		
	}

}
